package com.remenote.remenoteback.dao;

import com.remenote.remenoteback.entity.doo.CommentDo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface CommentRepository extends JpaRepository<CommentDo,Integer> {
    List<CommentDo> findCommentDosByUsernameAndNotebookNameAndNoteTitleAndIsDelete(String username, String notebookName, String noteTitle,boolean isDelete);

    //用于删除
    CommentDo findCommentDoByUsernameAndNotebookNameAndNoteTitleAndCreatedTimeAndPublisher(String username, String notebookName, String noteTitle, Date createDate, String publisher);
}
